package com.exercise01;

public class EmployeeTest {
    public static void main(String[] args) {
        JavaTeacher jteacher = new JavaTeacher();
        jteacher.setName("张三");
        jteacher.setSex("男");
        jteacher.setAge(38);
        System.out.println("姓名: " + jteacher.getName() + ",性别: " + jteacher.getSex() + ",年龄: "
                + jteacher.getAge() + "的" + jteacher.work() );
        UITeacher uteacher = new UITeacher();
        uteacher.setName("李四");
        uteacher.setSex("女");
        uteacher.setAge(28);
        System.out.println("姓名: " + uteacher.getName() + ",性别: " + uteacher.getSex() + ",年龄: "
                + uteacher.getAge() + "的" + uteacher.work() );
        System.out.println("姓名: " + uteacher.getName() + ",性别: " + uteacher.getSex() + ",年龄: "
                + uteacher.getAge() + "的" + uteacher.draw() );

        System.out.println("--------------------------以上是无参构造--------------------------");

        JavaTeacher javateacher = new JavaTeacher("张三","男",38);
        System.out.println("姓名: " + javateacher.getName() + ",性别: " + javateacher.getSex() + ",年龄: "
                + javateacher.getAge() + "的" + javateacher.work() );
        UITeacher uiteacher = new UITeacher("李四","女",28);
        System.out.println("姓名: " + uiteacher.getName() + ",性别: " + uiteacher.getSex() + ",年龄: "
                + uiteacher.getAge() + "的" + uiteacher.work() );
        System.out.println("姓名: " + uiteacher.getName() + ",性别: " + uiteacher.getSex() + ",年龄: "
                + uiteacher.getAge() + "的" + uiteacher.draw() );
    }
}
